<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.wonders.ips.sysadmin.DataValue"%>

<%
int id = Integer.parseInt(request.getParameter("id"));
int key_id = Integer.parseInt(request.getParameter("key_id"));
String name = request.getParameter("name").trim();
String remark = request.getParameter("remark");

String actionType = request.getParameter("actionType");

DataValue v = new DataValue();

if (actionType.equals("0"))
  v.add(name,remark,key_id);
if (actionType.equals("1"))
  v.mod(id,name,remark,key_id);
if (actionType.equals("2"))
  v.del(id);

response.sendRedirect("list_value.jsp?key_id="+key_id);
%> 
